import dayjs from 'dayjs';

export interface CreateAppConnectionParams {
  app_register_api: string;
}

export interface GetAppConnectionListParams {
  name: string;
  is_active: number;
}

export interface ActiveAppConnectionParams {
  is_active: number;
}

export interface AppConnectionModel {
  id: number;
  app_register_api: string;
  name: string;
  desc: string;
  url: string;
  is_system_app: boolean;
  system_app_id: string;
  is_connected: boolean;
  is_active: boolean;
  created_at?: dayjs.ConfigType;
  updated_at?: dayjs.ConfigType;
}

export interface GenerateCertificateParams {
  connection_id: number|string;
  entities: string;
}

export interface ValidateCertificateParams {
  certificate_id: number;
}